package com.fnzn.entranceGuard.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import javax.persistence.Transient;
import java.io.Serializable;

/**
 * <p>
 * IC信息管理
 * </p>
 *
 * @author JokerGao
 * @since 2018-06-25
 */
@TableName("guard_ic_info")
public class GuardIcInfo extends Model<GuardIcInfo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.UUID)
    private String id;
    /**
     * IC卡信息
     */
    @TableField("ic_id")
    private String icId;
    /**
     * 业主id
     */
    @TableField("house_owner_id")
    private String houseOwnerId;
    /**
     * 业主姓名（非数据库字段）
     */
    @TableField(exist = false)
    private String houseOwnerName;
    /**
     * 用户id
     */
    @TableField("user_id")
    private String userId;
    /**
     * 业主姓名（非数据库字段）
     */
    @TableField(exist = false)
    private String userName;
    /**
     * 添加人
     */
    @TableField("create_user")
    private String createUser;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新人
     */
    @TableField("update_user")
    private String updateUser;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * 删除标志
     */
    @TableField("del_flag")
    private String delFlag;
    /**
     * 预留字段1
     */
    private String var1;
    /**
     * 预留字段2
     */
    private String var2;
    /**
     * 状态（非数据库字段）
     */
    @TableField(exist = false)
    private String status;
    /**
     * 设备表主键Id（非数据库字段）
     */
    @TableField(exist = false)
    private Integer deviceId;
    /**
     * 设备名称（非数据库字段）
     */
    @TableField(exist = false)
    private String deviceName;
    /**
     * 设备号
     */
    @TableField(exist = false)
    private String deviceNumber;

    /**
     * 社区编号（页面插入至IC卡块1中）
     */
    @TableField(exist = false)
    private String comNumber;
    /**
     * 类型(门禁：0；梯控：1)
     */
    @TableField(exist = false)
    private String type;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIcId() {
        return icId;
    }

    public void setIcId(String icId) {
        this.icId = icId;
    }

    public String getHouseOwnerId() {
        return houseOwnerId;
    }

    public void setHouseOwnerId(String houseOwnerId) {
        this.houseOwnerId = houseOwnerId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getVar1() {
        return var1;
    }

    public void setVar1(String var1) {
        this.var1 = var1;
    }

    public String getVar2() {
        return var2;
    }

    public void setVar2(String var2) {
        this.var2 = var2;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getHouseOwnerName() {
        return houseOwnerName;
    }

    public void setHouseOwnerName(String houseOwnerName) {
        this.houseOwnerName = houseOwnerName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Integer deviceId) {
        this.deviceId = deviceId;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getDeviceNumber() {
        return deviceNumber;
    }

    public void setDeviceNumber(String deviceNumber) {
        this.deviceNumber = deviceNumber;
    }

    public String getComNumber() {
        return comNumber;
    }

    public void setComNumber(String comNumber) {
        this.comNumber = comNumber;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "GuardIcInfo{" +
                ", id=" + id +
                ", icId=" + icId +
                ", houseOwnerId=" + houseOwnerId +
                ", createUser=" + createUser +
                ", createTime=" + createTime +
                ", updateUser=" + updateUser +
                ", updateTime=" + updateTime +
                ", delFlag=" + delFlag +
                ", var1=" + var1 +
                ", var2=" + var2 +
                "}";
    }
}
